package com.ld.xuanKe.service;

import com.ld.xuanKe.entity.Course;

import javax.persistence.criteria.CriteriaBuilder;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ProjectName xuanKe
 * @ClassName CourseService
 * @Author 刘邓
 * @Date 2023-12-09 10:41
 */
public interface CourseService {
	public int update(Course course);
	public int add(Course course);
	public int delete(Integer id);
	public List<Course> list();
	public Course querySingle(Integer id);
	public int updateTime(Timestamp startTime, Timestamp endTime);
	public List<Course> getCoursesByLikeName(String name);
	public List<Course> getValidCourses();
	public int deleteNotValid();
	public List<Course> getSelectCourse(Integer userId);
	public List<Course> getSelectCourseByLikeName(Integer userId,String courseName);
//	获取选课结束后合格的课程
	public List<Course> getValidCoursesAfterSelect();
}
